package com.qf.dao;

import com.qf.pojo.Order;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author zhouhao
 * @create 2021-12-24 19:41
 */
public interface OrderDao {

    //根据条件查询预约
    Order findOrderByCondition(HashMap<String, Object> orderMap);

    //添加预约
    void addOrder(Order order);

    //根据id查询预约信息，包括套餐信息和会员信息
    Map<String,Object> findById(Integer id);

    //今日预约数
    Integer findOrderCountByDate(String today);

    //本周预约数
    Integer findOrderCountAfterDate(String thisWeekMonday);

    //本月预约数
    Integer findOrderCountAfterDateOnMonth(String firstDay4ThisMonth);

    //今日到诊数
    Integer findVisitsCountByDate(String today);

    //本周到诊数
    Integer findVisitsCountAfterDate(String thisWeekMonday);

    //本月到诊数
    Integer findVisitsCountAfterDateOnMonth(String firstDay4ThisMonth);

    //热门套餐（取前3）
    List<Map> findHotSetmeal();
}
